import os
def gen_exec_file(file):
    return os.path.splitext(file)[0]+'.out'

env = Environment()
env['CCFLAGS'] = '-g'
env['CXXFLAGS'] = '-g'
env.Append(CXXFLAGS=['-Ddebug','-Wall'])

def build_out(src_file):
    src = Split(src_file)
    target = gen_exec_file(src[0])
    env.Program(target, src)

build_out('1_类_static成员_初始化.cc')
build_out('2_类_static_指针成员初始化.cc')